﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=utf-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>发卡明细</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="${pageContext.request.contextPath }/scripts/boot.js" type="text/javascript"></script>
<style type="text/css">
    html, body
    {
        font-size:12px;
        padding:0;
        margin:0;
        border:0;
        height:100%;
    } 
</style>
</head>
<body>
	  <form id="form1" method="post">
		    <fieldset style="border:solid 1px #aaa;padding:3px;">
		      <legend >发卡明细</legend>
			  <div id="datagrid1" class="mini-datagrid" style="width:100%;height:370px;" allowResize="true"
			       url="${pageContext.request.contextPath}/DWfk.do?method=getDWfkmx" idField="id" multiSelect="true">
				    <div property="columns">
				      <div field="aaz001" width="120" headerAlign="center" >制卡批次</div>
				      <div field="aae011" width="120" headerAlign="center" >劳动保障卡号</div>
				      <div field="aac003" width="120" headerAlign="center" >姓名</div>
				      <div field="aac004" width="120" headerAlign="center" >性别</div>
				      <div field="aaz501" width="120" headerAlign="center" >卡号</div>
				      <div field="aaz632" width="120" headerAlign="center" >盒号</div>
				    </div>
			  </div>
		    </fieldset>
	  </form>
	  <div style="text-align:center;padding:10px;">
	    <a class="mini-button" onclick="onPrint"  iconCls="icon-print" style="width:100px;margin-right:20px;">打印</a>
	    <a class="mini-button" onclick="onCancel"  iconCls="icon-remove" style="width:100px;margin-right:20px;">取消</a>
	  </div>
	<script type="text/javascript">
		 mini.parse();
        var form = new mini.Form("form1");
        
        function onCancel(e) {
            CloseWindow("cancel");
        }
        
        function CloseWindow(action) {            
            if (action == "close" && form.isChanged()) {
                if (confirm("数据被修改了，是否先保存？")) {
                    return false;
                }
            }
            if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
            else window.close();            
        }
        //标准方法接口定义
        function SetData(data) {
            if (data.action == "search") {
                //跨页面传递的数据对象，克隆后才可以安全使用
                data = mini.clone(data);
				var aab001 = data.aab001;
				var aaz001 = data.aaz001;
				var aaz002 = data.aaz002;
				grid.load({aab001:aab001,aaz001:aaz001,aaz002:aaz002});
                
            }
        }
        
	</script>
</body>
</html>
